home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 1996 July / Macworld (1996-07).dmg / System 7.5 Update 2.0 / FileMaker Pro 3.0 CD Extras / FileMaker And Apple Events / Sample Applications / Graphing Example / Graph Script(Me first) < prev    next >
Text File  |  1996-01-25  |  517b  |  22 lines

  1. tell application "FileMaker Pro"
  2.     activate
  3.     -- choose the file to open
  4.     if not (Exists (Window "Sales Database")) then
  5.         set myFile to choose file with prompt "Select the file 'Sales Database'…"
  6.         Open myFile
  7.     end if
  8.     Show Layout "Data Entry"
  9.     Sort Layout 1 By Field 1
  10.     Do Script FileMaker Script "Graph in Excel"
  11. end tell
  12.  
  13. tell application "Microsoft Excel"
  14.     activate
  15.     quit
  16. end tell
  17.  
  18. tell application "FileMaker Pro"
  19.     activate
  20.     Show Window "Sales Database"
  21.     Do Script FileMaker Script "Paste From Clipboard"
  22. end tell